package com.zpphis.mapper;

import com.zpphis.entity.UserMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zpp
 * @since 2022-11-22
 */
@Mapper
public interface UserMenuMapper extends BaseMapper<UserMenu> {

    @Select("select um.id, ut.user_type_name, m.menu_title from t_user_menu um INNER JOIN t_user_type ut on ut.id=um.user_type_id INNER JOIN t_menu m ON m.id=um.menu_id where um.del_mark=1")
    List<Map<String, Object>> selectListExtend();
}
